<html>
    <head>
        <title>Docs For Class TCPDF2DBarcode</title>
        <link rel="stylesheet" type="text/css" href="../media/style.css">
    </head>
    <body>

        <table border="0" cellspacing="0" cellpadding="0" height="48" width="100%">
            <tr>
                <td class="header_top">com-tecnick-tcpdf</td>
            </tr>
            <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
            <tr>
                <td class="header_menu">


                    [ <a href="../classtrees_com-tecnick-tcpdf.html" class="menu">class tree: com-tecnick-tcpdf</a> ]
                    [ <a href="../elementindex_com-tecnick-tcpdf.html" class="menu">index: com-tecnick-tcpdf</a> ]
                    [ <a href="../elementindex.html" class="menu">all elements</a> ]
                </td>
            </tr>
            <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
        </table>

        <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr valign="top">
                <td width="200" class="menu">
                    <div id="todolist">
                        <p><a href="../todolist.html">Todo List</a></p>
                    </div>
                    <b>Packages:</b><br />
                    <a href="../li_PHPExcel.html">PHPExcel</a><br />
                    <a href="../li_com-tecnick-tcpdf.html">com-tecnick-tcpdf</a><br />
                    <a href="../li_JAMA.html">JAMA</a><br />
                    <a href="../li_Math_Stats.html">Math_Stats</a><br />
                    <a href="../li_PHPExcel_CachedObjectStorage.html">PHPExcel_CachedObjectStorage</a><br />
                    <a href="../li_PHPExcel_Calculation.html">PHPExcel_Calculation</a><br />
                    <a href="../li_PHPExcel_Cell.html">PHPExcel_Cell</a><br />
                    <a href="../li_PHPExcel_Chart.html">PHPExcel_Chart</a><br />
                    <a href="../li_PHPExcel_Chart_Renderer.html">PHPExcel_Chart_Renderer</a><br />
                    <a href="../li_PHPExcel_Reader.html">PHPExcel_Reader</a><br />
                    <a href="../li_PHPExcel_Reader_Excel5.html">PHPExcel_Reader_Excel5</a><br />
                    <a href="../li_PHPExcel_Reader_Excel2007.html">PHPExcel_Reader_Excel2007</a><br />
                    <a href="../li_PHPExcel_RichText.html">PHPExcel_RichText</a><br />
                    <a href="../li_PHPExcel_Settings.html">PHPExcel_Settings</a><br />
                    <a href="../li_PHPExcel_Shared.html">PHPExcel_Shared</a><br />
                    <a href="../li_PHPExcel_Shared_Escher.html">PHPExcel_Shared_Escher</a><br />
                    <a href="../li_PHPExcel_Shared_OLE.html">PHPExcel_Shared_OLE</a><br />
                    <a href="../li_PHPExcel_Shared_Trend.html">PHPExcel_Shared_Trend</a><br />
                    <a href="../li_PHPExcel_Shared_ZipArchive.html">PHPExcel_Shared_ZipArchive</a><br />
                    <a href="../li_PHPExcel_Style.html">PHPExcel_Style</a><br />
                    <a href="../li_PHPExcel_Worksheet.html">PHPExcel_Worksheet</a><br />
                    <a href="../li_PHPExcel_Worksheet_Drawing.html">PHPExcel_Worksheet_Drawing</a><br />
                    <a href="../li_PHPExcel_Writer.html">PHPExcel_Writer</a><br />
                    <a href="../li_PHPExcel_Writer_Excel5.html">PHPExcel_Writer_Excel5</a><br />
                    <a href="../li_PHPExcel_Writer_Excel2007.html">PHPExcel_Writer_Excel2007</a><br />
                    <br /><br />
                    <b>Files:</b><br />
                    <div class="package">
                        <a href="../com-tecnick-tcpdf/_PHPExcel---Shared---PDF---2dbarcodes.php.html">		2dbarcodes.php
                        </a><br>
                        <a href="../com-tecnick-tcpdf/_PHPExcel---Shared---PDF---barcodes.php.html">		barcodes.php
                        </a><br>
                        <a href="../com-tecnick-tcpdf/_PHPExcel---Shared---PDF---config---lang---bra.php.html">		bra.php
                        </a><br>
                        <a href="../com-tecnick-tcpdf/_PHPExcel---Shared---PDF---config---lang---eng.php.html">		eng.php
                        </a><br>
                        <a href="../com-tecnick-tcpdf/_PHPExcel---Shared---PDF---config---lang---ger.php.html">		ger.php
                        </a><br>
                        <a href="../com-tecnick-tcpdf/_PHPExcel---Shared---PDF---htmlcolors.php.html">		htmlcolors.php
                        </a><br>
                        <a href="../com-tecnick-tcpdf/_PHPExcel---Shared---PDF---config---lang---ita.php.html">		ita.php
                        </a><br>
                        <a href="../com-tecnick-tcpdf/_PHPExcel---Shared---PDF---fonts---utils---makeallttffonts.php.html">		makeallttffonts.php
                        </a><br>
                        <a href="../com-tecnick-tcpdf/_PHPExcel---Shared---PDF---fonts---utils---makefont.php.html">		makefont.php
                        </a><br>
                        <a href="../com-tecnick-tcpdf/_PHPExcel---Shared---PDF---pdf417.php.html">		pdf417.php
                        </a><br>
                        <a href="../com-tecnick-tcpdf/_PHPExcel---Shared---PDF---qrcode.php.html">		qrcode.php
                        </a><br>
                        <a href="../com-tecnick-tcpdf/_PHPExcel---Shared---PDF---tcpdf.php.html">		tcpdf.php
                        </a><br>
                        <a href="../com-tecnick-tcpdf/_PHPExcel---Shared---PDF---config---tcpdf_config.php.html">		tcpdf_config.php
                        </a><br>
                        <a href="../com-tecnick-tcpdf/_PHPExcel---Shared---PDF---config---tcpdf_config_alt.php.html">		tcpdf_config_alt.php
                        </a><br>
                        <a href="../com-tecnick-tcpdf/_PHPExcel---Shared---PDF---unicode_data.php.html">		unicode_data.php
                        </a><br>
                    </div><br />


                    <b>Classes:</b><br />
                    <div class="package">
                        <a href="../com-tecnick-tcpdf/PDF417.html">PDF417</a><br />
                        <a href="../com-tecnick-tcpdf/QRcode.html">QRcode</a><br />
                        <a href="../com-tecnick-tcpdf/TCPDF.html">TCPDF</a><br />
                        <a href="../com-tecnick-tcpdf/TCPDF2DBarcode.html">TCPDF2DBarcode</a><br />
                        <a href="../com-tecnick-tcpdf/TCPDFBarcode.html">TCPDFBarcode</a><br />
                        <a href="../com-tecnick-tcpdf/TCPDF_UNICODE_DATA.html">TCPDF_UNICODE_DATA</a><br />
                    </div>
                </td>
                <td>
                    <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">

                                <h1>Class: TCPDF2DBarcode</h1>
                                Source Location: /PHPExcel/Shared/PDF/2dbarcodes.php<br /><br />


                                <table width="100%" border="0">
                                    <tr><td valign="top">

                                            <h3><a href="#class_details">Class Overview</a></h3>
                                            <pre></pre><br />
                                            <div class="description">PHP class to creates array representations for 2D barcodes to be used with TCPDF (http://www.tcpdf.org).<br /></div><br /><br />
                                            <h4>Author(s):</h4>
                                            <ul>
                                                <li>Nicola Asuni</li>
                                            </ul>






                                            <h4>Version:</h4>
                                            <ul>
                                                <li>1.0.007</li>
                                            </ul>


                                        </td>

                                        <td valign="top">
                                            <h3><a href="#class_vars">Variables</a></h3>
                                            <ul>
                                                <li><a href="../com-tecnick-tcpdf/TCPDF2DBarcode.html#var$barcode_array">$barcode_array</a></li>
                                            </ul>
                                        </td>


                                        <td valign="top">
                                            <h3><a href="#class_methods">Methods</a></h3>
                                            <ul>
                                                <li><a href="../com-tecnick-tcpdf/TCPDF2DBarcode.html#method__construct">__construct</a></li>
                                                <li><a href="../com-tecnick-tcpdf/TCPDF2DBarcode.html#methodgetBarcodeArray">getBarcodeArray</a></li>
                                                <li><a href="../com-tecnick-tcpdf/TCPDF2DBarcode.html#methodsetBarcode">setBarcode</a></li>
                                            </ul>
                                        </td>

                                    </tr></table>
                                <hr />

                                <table width="100%" border="0"><tr>






                                    </tr></table>
                                <hr />

                                <a name="class_details"></a>
                                <h3>Class Details</h3>
                                <div class="tags">
                                    [line 55]<br />
                                    PHP class to creates array representations for 2D barcodes to be used with TCPDF (http://www.tcpdf.org).<br /><br /><br /><br /><br />
                                    <h4>Tags:</h4>
                                    <div class="tags">
                                        <table border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td><b>author:</b>&nbsp;&nbsp;</td><td>Nicola Asuni</td>
                                            </tr>
                                            <tr>
                                                <td><b>version:</b>&nbsp;&nbsp;</td><td>1.0.007</td>
                                            </tr>
                                            <tr>
                                                <td><b>link:</b>&nbsp;&nbsp;</td><td><a href="http://www.tcpdf.org">http://www.tcpdf.org</a></td>
                                            </tr>
                                            <tr>
                                                <td><b>name:</b>&nbsp;&nbsp;</td><td>TCPDFBarcode</td>
                                            </tr>
                                            <tr>
                                                <td><b>license:</b>&nbsp;&nbsp;</td><td><a href="http://www.gnu.org/copyleft/lesser.html">LGPL</a></td>
                                            </tr>
                                        </table>
                                    </div>
                                </div><br /><br />
                                <div class="top">[ <a href="#top">Top</a> ]</div><br />

                                <hr />
                                <a name="class_vars"></a>
                                <h3>Class Variables</h3>
                                <div class="tags">
                                    <a name="var$barcode_array"></a>
                                    <p></p>
                                    <h4>$barcode_array = <span class="value">&nbsp;false</span></h4>
                                    <p>[line 61]</p>
                                    <br /><br />
                                    <h4>Tags:</h4>
                                    <div class="tags">
                                        <table border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td><b>var:</b>&nbsp;&nbsp;</td><td>representation of barcode.</td>
                                            </tr>
                                            <tr>
                                                <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
                                            </tr>
                                        </table>
                                    </div>

                                    <br />
                                    <div class="tags">
                                        <table border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td><b>Type:</b>&nbsp;&nbsp;</td>
                                                <td>array</td>
                                            </tr>
                                        </table>
                                    </div><br /><br />
                                    <div class="top">[ <a href="#top">Top</a> ]</div><br />
                                </div><br />

                                <hr />
                                <a name="class_methods"></a>
                                <h3>Class Methods</h3>
                                <div class="tags">

                                    <hr />
                                    <a name="method__construct"></a>
                                    <h3>constructor __construct <span class="smalllinenumber">[line 73]</span></h3>
                                    <div class="function">
                                        <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
                                                    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
                                                                <code>TCPDF2DBarcode __construct(
                                                                    string
                                                                    $code, string
                                                                    $type)</code>
                                                            </td></tr></table>
                                                </td></tr></table><br />

                                        This is the class constructor.<br /><br /><p>Return an array representations for 2D barcodes:<ul><li>$arrcode['code'] code to be printed on text label</li><li>$arrcode['num_rows'] required number of rows</li><li>$arrcode['num_cols'] required number of columns</li><li>$arrcode['bcode'][$r][$c] value of the cell is $r row and $c column (0 = transparent, 1 = black)</li></ul></p><br /><br /><br />
                                        <h4>Tags:</h4>
                                        <div class="tags">
                                            <table border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
                                                </tr>
                                            </table>
                                        </div>
                                        <br /><br />


                                        <h4>Parameters:</h4>
                                        <div class="tags">
                                            <table border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td class="type">string&nbsp;&nbsp;</td>
                                                    <td><b>$code</b>&nbsp;&nbsp;</td>
                                                    <td>code to print</td>
                                                </tr>
                                                <tr>
                                                    <td class="type">string&nbsp;&nbsp;</td>
                                                    <td><b>$type</b>&nbsp;&nbsp;</td>
                                                    <td>type of barcode: <ul><li>RAW: raw mode - comma-separad list of array rows</li><li>RAW2: raw mode - array rows are surrounded by square parenthesis.</li><li>QRCODE : QR-CODE Low error correction</li><li>QRCODE,L : QR-CODE Low error correction</li><li>QRCODE,M : QR-CODE Medium error correction</li><li>QRCODE,Q : QR-CODE Better error correction</li><li>QRCODE,H : QR-CODE Best error correction</li><li>PDF417 : PDF417 (ISO/IEC 15438:2006)</li><li>PDF417,a,e,t,s,f,o0,o1,o2,o3,o4,o5,o6 : PDF417 with parameters: a = aspect ratio (width/height); e = error correction level (0-8); t = total number of macro segments; s = macro segment index (0-99998); f = file ID; o0 = File Name (text); o1 = Segment Count (numeric); o2 = Time Stamp (numeric); o3 = Sender (text); o4 = Addressee (text); o5 = File Size (numeric); o6 = Checksum (numeric). NOTES: Parameters t, s and f are required for a Macro Control Block, all other parametrs are optional. To use a comma character ',' on text options, replace it with the character 255: &quot;\xff&quot;.</li></ul></td>
                                                </tr>
                                            </table>
                                        </div><br />
                                        <div class="top">[ <a href="#top">Top</a> ]</div>
                                    </div>
                                    <hr />
                                    <a name="methodgetBarcodeArray"></a>
                                    <h3>method getBarcodeArray <span class="smalllinenumber">[line 81]</span></h3>
                                    <div class="function">
                                        <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
                                                    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
                                                                <code>array getBarcodeArray(
                                                                    )</code>
                                                            </td></tr></table>
                                                </td></tr></table><br />

                                        Return an array representations of barcode.<br /><br /><br /><br />
                                        <h4>Tags:</h4>
                                        <div class="tags">
                                            <table border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
                                                </tr>
                                            </table>
                                        </div>
                                        <br /><br />


                                        <div class="top">[ <a href="#top">Top</a> ]</div>
                                    </div>
                                    <hr />
                                    <a name="methodsetBarcode"></a>
                                    <h3>method setBarcode <span class="smalllinenumber">[line 91]</span></h3>
                                    <div class="function">
                                        <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
                                                    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
                                                                <code>array setBarcode(
                                                                    string
                                                                    $code, string
                                                                    $type)</code>
                                                            </td></tr></table>
                                                </td></tr></table><br />

                                        Set the barcode.<br /><br /><br /><br />
                                        <h4>Tags:</h4>
                                        <div class="tags">
                                            <table border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
                                                </tr>
                                            </table>
                                        </div>
                                        <br /><br />


                                        <h4>Parameters:</h4>
                                        <div class="tags">
                                            <table border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td class="type">string&nbsp;&nbsp;</td>
                                                    <td><b>$code</b>&nbsp;&nbsp;</td>
                                                    <td>code to print</td>
                                                </tr>
                                                <tr>
                                                    <td class="type">string&nbsp;&nbsp;</td>
                                                    <td><b>$type</b>&nbsp;&nbsp;</td>
                                                    <td>type of barcode: <ul><li>RAW: raw mode - comma-separad list of array rows</li><li>RAW2: raw mode - array rows are surrounded by square parenthesis.</li><li>QRCODE : QR-CODE Low error correction</li><li>QRCODE,L : QR-CODE Low error correction</li><li>QRCODE,M : QR-CODE Medium error correction</li><li>QRCODE,Q : QR-CODE Better error correction</li><li>QRCODE,H : QR-CODE Best error correction</li><li>PDF417 : PDF417 (ISO/IEC 15438:2006)</li><li>PDF417,a,e,t,s,f,o0,o1,o2,o3,o4,o5,o6 : PDF417 with parameters: a = aspect ratio (width/height); e = error correction level (0-8); t = total number of macro segments; s = macro segment index (0-99998); f = file ID; o0 = File Name (text); o1 = Segment Count (numeric); o2 = Time Stamp (numeric); o3 = Sender (text); o4 = Addressee (text); o5 = File Size (numeric); o6 = Checksum (numeric). NOTES: Parameters t, s and f are required for a Macro Control Block, all other parametrs are optional. To use a comma character ',' on text options, replace it with the character 255: &quot;\xff&quot;.</li></ul></td>
                                                </tr>
                                            </table>
                                        </div><br />
                                        <div class="top">[ <a href="#top">Top</a> ]</div>
                                    </div>
                                </div><br />


                                <div class="credit">
                                    <hr />
                                    Documentation generated on Sat, 19 May 2012 14:16:46 +0200 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.4</a>
                                </div>
                            </td></tr></table>
                </td>
            </tr>
        </table>

    </body>
</html>